package com.melody.entry;

import com.baomidou.mybatisplus.annotation.*;

import java.io.Serializable;
import java.time.LocalDateTime;
import lombok.Data;

/**
 * 
 * @TableName favorite_music
 */
@TableName(value ="favorite_music")
@Data
public class FavoriteMusic implements Serializable {
    /**
     * 
     */
    @TableId(value = "favorite_id", type = IdType.AUTO)
    private Integer favoriteId;

    /**
     * 
     */
    @TableField(value = "user_id")
    private Integer userId;

    /**
     * 
     */
    @TableField(value = "music_describe")
    private String musicDescribe;

    /**
     * 
     */
    @TableField(value = "cover_image")
    private String coverImage;

    /**
     * 
     */
    @TableField(value = "label_id")
    private Integer labelId;

    /**
     * 类型，0:私有，1:公开
     */
    @TableField(value = "type")
    private Integer type;

    /**
     * 
     */
    @TableField(value = "collection_volume")
    private Integer collectionVolume;

    /**
     * 
     */
    @TableField(value = "create_time",fill = FieldFill.INSERT)
    private LocalDateTime createTime;

    /**
     * 
     */
    @TableField(value = "update_time",fill = FieldFill.INSERT_UPDATE)
    private LocalDateTime updateTime;

    /**
     * 是否删除，0:未删除，1:已删除
     */
    @TableLogic
    @TableField(value = "is_delete")
    private Integer isDelete;

    @TableField(exist = false)
    private static final long serialVersionUID = 1L;
}